package com.ruochen.recipe.customer;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.lxj.xpopup.core.CenterPopupView;
import com.ruochen.common.listener.NoDoubleClickListener;
import com.ruochen.recipe.R;

public class CookDishEditPopup extends CenterPopupView {

    private TextView rtvSure;
    private TextView rtvCancel;

    public CookDishEditPopup(@NonNull Context context) {
        super(context);
    }

    @Override
    protected void onCreate() {
        super.onCreate();
        rtvSure = findViewById(R.id.rtvSure);
        rtvCancel = findViewById(R.id.rtvCancel);
        rtvSure.setOnClickListener(new NoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View view) {
                dismiss();
            }
        });
        rtvCancel.setOnClickListener(new NoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View view) {
                dismiss();
            }
        });
    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.popup_cook_dish_edit;
    }
}
